package com.steward.dao.mob;

import com.steward.model.mob.MobGiftActive;
import com.steward.model.mob.MobGiftActiveExample;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface MobGiftActiveMapper {
	int deleteByPrimaryKey(String id);

	int insert(MobGiftActive record);

	MobGiftActive selectByPrimaryKey(String id);

	int updateByPrimaryKeySelective(MobGiftActive record);
	
	/**
	 * 根据cardId查询相关的数据
	 * @param cardId
	 * @return
	 */
	MobGiftActive queryGiftActiveInfoWithCardId(@Param("cardId")String cardId);

	List<MobGiftActive> selectByExample(MobGiftActiveExample example);

}